Skip to content

Oracle Identity: Replace trigger by Generated by#142

Merged
JaBistDuNarrisch merged 19 commits intomasterfrom
add-primary-key
Oct 30, 2025
Merged

Oracle Identity: Replace trigger by Generated by#142
JaBistDuNarrisch merged 19 commits intomasterfrom
add-primary-key

Conversation

@JaBistDuNarrisch
Copy link
Copy Markdown

@JaBistDuNarrisch JaBistDuNarrisch commented Oct 29, 2025

Resolves #143

@JaBistDuNarrisch JaBistDuNarrisch self-assigned this Oct 29, 2025
@JaBistDuNarrisch JaBistDuNarrisch merged commit b87ec7a into master Oct 30, 2025
1 check passed
@JaBistDuNarrisch JaBistDuNarrisch deleted the add-primary-key branch October 30, 2025 08:00
Copy link
Copy Markdown

@Schlupp77 Schlupp77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keine funktionellen Fehler gefunden, nur ein paar Optimierungen/Fragen.

sb.AppendLine(" c_pk.TABLE_NAME AS PARENT_TABLE,");
sb.AppendLine(" col_pk.COLUMN_NAME AS PARENT_COLUMN");
sb.AppendLine("FROM ");
sb.AppendLine(" USER_CONS_COLUMNS a ");
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"a" bitte in "ucc" ändern wie weiter unten.

if (column.Precision.HasValue || column.Scale.HasValue)
{
type = GetTypeNameParametrized(column.Type, column.Size, column.Precision ?? 0, column.Scale ?? 0);
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Microoptimierung, aber könnte man den "if" nicht zuerst machen?

(oldColumn.MigratorDbType == MigratorDbType.Int16 ||
oldColumn.MigratorDbType == MigratorDbType.Int32 ||
oldColumn.MigratorDbType == MigratorDbType.Int64 ||
oldColumn.MigratorDbType == MigratorDbType.Decimal) &&
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fehlen hier noch die unsigned Versionen der Typen?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Replace Identity trigger to "GENERATED...."

3 participants